package cn.jetpiece.cloud.joss.api.object.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 对象
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@Data
@ApiModel
public class UploadObjectResult implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 预请求Token
     */
    @ApiModelProperty(value = "预请求Token")
    private String jossToken;

    /**
     * 分片上传任务Id
     */
    @ApiModelProperty(value = "分片上传任务Id")
    private String uploadId;

    /**
     * 分片上传返回的MD5信息
     */
    @ApiModelProperty(value = "分片上传返回的MD5信息,分片上传是返回")
    private JossPartEtag etag;

    /**
     * 桶名
     */
    @ApiModelProperty(value = "桶名")
    private String bucketName;

    /**
     * 对象名
     */
    @ApiModelProperty(value = "对象名")
    private String objectName;

    /**
     * 数据权限(1:私有,2:公共可读)
     */
    @ApiModelProperty(value = "数据权限(1:私有,2:公共可读)")
    private Integer acl;

    /**
     * 服务商地址
     */
    @ApiModelProperty(value = "服务商地址")
    private String providerUrl;

    /**
     * 访问地址
     */
    @ApiModelProperty(value = "访问地址")
    private String url;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private String contextType;

    /**
     * 对象大小
     */
    @ApiModelProperty(value = "对象大小")
    private Long objectSize;

}
